home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Directories / Driver.h < prev    next >
Text File  |  2000-06-23  |  416b  |  28 lines

  1. // Driver.h
  2.  
  3. #ifndef Driver_h
  4. #define Driver_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class Driver
  11.   {
  12.     private:
  13.         int16 refNum;
  14.     
  15.  
  16.     public:
  17.         explicit Driver( int16 value )
  18.           : refNum( value )
  19.           {}
  20.     
  21.         int16 RefNum() const                            { return refNum; }
  22.         
  23.         bool operator==( Driver f ) const        { return refNum == f.refNum; }
  24.         bool operator!=( Driver f ) const        { return refNum != f.refNum; }
  25.   };
  26.  
  27. #endif
  28.